package com.neuedu.advance.override;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述  老虎
 * @data 2024/10/1712:22
 */
public class Tiger  extends  Animal{

    public Tiger(String name) {
        super(name);
    }


    @Override
    public void eat() {
        super.eat();
        System.out.println("老虎吃肉");

    }

    public static void main(String[] args) {
        Tiger ti = new Tiger("跳跳虎");

        ti.play();
        System.out.println();
        ti.eat();




    }
}
